Otherwise the handler will be associated with the `globalThis`
object and never get disconnected automatically.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4382>
(cherry picked from commit
eafb4e601904222bb8d6b2c3aa88b264338f374a)
this._userManager.disconnectObject(this);
this._loadUserList();
}
- });
+ }, this);
} else {
const id = GLib.idle_add_once(GLib.PRIORITY_DEFAULT, this._loadUserList.bind(this));
GLib.Source.set_name_by_id(id, '[gnome-shell] _loadUserList');